/**
 * 
 */
package com.dp.struct.decorator;

/**
 * This is to describe Decorator design pattern.
 * 
 * Decorator pattern attaches additional responsibilities to an object
 * dyamically
 * 
 * @author Sunaina.Sharma
 * 
 */
public class DecoratorEx {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Icecream icecream = new HoneyDecorator(new NuttyDecorator(
				new SimpleIcecream()));

		System.out.println(icecream.makeIcecrem());
	}

}
